package o;

import com.huawei.hms.framework.common.ContainerUtils;

public final class cud {
    public static final String ˊ = (ContentManager.getInstant().getContext().getPackageName() + ".push.PUSH_MSG_AND_TOKEN");

    public static String ॱ(boolean z) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("sign=");
        stringBuilder.append(HcridSession.ˋ().ˊ());
        stringBuilder.append(ContainerUtils.FIELD_DELIMITER);
        stringBuilder.append("hcrId=");
        stringBuilder.append(HcridSession.ˋ().ॱ());
        stringBuilder.append(ContainerUtils.FIELD_DELIMITER);
        return stringBuilder.toString();
    }

    public static String ˎ(String str) {
        if (str.indexOf("?") == -1) {
            return str + "?";
        }
        if (str.endsWith(ContainerUtils.FIELD_DELIMITER)) {
            return str;
        }
        return str + ContainerUtils.FIELD_DELIMITER;
    }
}
